package top.aigoo.project01.mapper;

import org.apache.ibatis.annotations.Param;
import top.aigoo.project01.entity.UserAwardMap;
import top.aigoo.project01.entity.UserShopMap;

import java.util.List;

/**
 * @Description: 请填写该类完成的功能
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/28 23:08
 */
public interface UserShopMapMapper {
    /**
     * 通过条件查询,列表
     */
    List<UserShopMap> queryUserShopMapList(
            @Param("userShopMapCondition") UserShopMap userShopMapCondition,
            @Param("rowIndex") int rowIndex,
            @Param("pageSize") int pageSize);

    /**
     * 查询对应的总数
     */
    int queryUserShopMapCount(@Param("userShopMapCondition") UserShopMap userShopMapCondition);

    /**
     * 通过Id查询
     */
    UserShopMap queryUserShopMapById(@Param("userId") long userId,
                                     @Param("shopId") long shopId);

    /**
     * 添加记录
     */
    int insertUserShopMap(UserShopMap userShopMap);

    /**
     * 修改
     */
    int updateUserShopMapPoint(UserShopMap userShopMap);
}
